<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Activiti 5.22 设计器</title>
</head>
<body>
<h2>
    <a href='/create?name=activiti&key=123456'>绘制流程</a>
</h2>
<div>
    <table width="100%">
        <tr>
            <td width="10%">模型编号</td>
            <td width="10%">版本</td>
            <td width="20%">模型名称</td>
            <td width="20%">模型key</td>
            <td width="40%">操作</td>
        </tr>
        <tr th:each="model:${modelList}">
            <td width="10%" th:text="${model.id}"></td>
            <td width="10%" th:text="${model.version}"></td>
            <td width="20%" th:text="${model.name}"></td>
            <td width="20%" th:text="${model.key}"></td>
            <td width="40%">
                <a th:href="|/modeler?modelId=${model.id}|">编辑</a>
                <a th:href="|/publish?modelId=${model.id}|">发布</a>
                <a th:href="|/revokePublish?modelId=${model.id}|">撤销</a>
                <a th:href="|/delete?modelId=${model.id}|">删除</a>
            </td>
        </tr>
    </table>
</div>
</body>
</html>